package com.nexus.core.sys.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.nexus.core.query.annotation.QueryCondition;
import com.nexus.core.query.annotation.QueryType;
import com.nexus.core.service.dto.BaseDTO;
import com.nexus.core.sys.entity.SysDictType;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 系统字典Value
 *
 * @Date 2025/7/28 15:08
 * @Author Administrator
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class SysDictValueDTO extends BaseDTO {


    /**
     * 所属字典
     */
    @ExcelProperty("所属字典")
    @QueryCondition(tableField = "dictType.id", type = QueryType.EQ)
    private SysDictTypeDTO dictType;
    /**
     * 字典名称
     */
    @ExcelProperty("字典名称")
    @QueryCondition(tableField = "name", type = QueryType.EQ)
    private String name;
    /**
     * 编码
     */
    @ExcelProperty("编码")
    @QueryCondition(tableField = "code", type = QueryType.EQ)
    private String code;
    /**
     * 数据值
     */
    @ExcelProperty("数据值")
    @QueryCondition(tableField = "value", type = QueryType.EQ)
    private String value;
    /**
     * 排序
     */
    @ExcelProperty("排序")
    @QueryCondition(tableField = "sort", type = QueryType.EQ)
    private String sort;
}